﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using tmAsk.Common;

namespace tmAsk.Webs
{
    public partial class B_login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (function.CheckSession() == true)
            {
                HttpContext.Current.Response.Write("<script>alert('已经登录了');parent.location='?default';</script>");
            }
            else
            {
                function.ClearSession();
                Response.Write((new function()).Gettemplate(3));
            }
        }
    }
}